package com.jinzhi.jinzhidata.service;

import com.jinzhi.jinzhidata.vo.ListResourceVO;
import com.jinzhi.jinzhidata.dataobject.Resource;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface ResourceService {

    List<ListResourceVO> selectResourceListByType(String resourceTypeName, PageRequest pageRequest);

    List<ListResourceVO> searchResourceByName(String resourceName, PageRequest pageRequest);

    Resource selectByResourceId(String resourceId);

    Resource saveResource(Resource resource);

    List<ListResourceVO> selectResourceListByAuthor(String authorId);

    List<ListResourceVO> selectUserBuyResourceList(List<String> resourceIdList);

    Long count();

    List<ListResourceVO> selectResourceList(PageRequest pageRequest);

    Resource checkResource(String resourceId, String resourceState);
}
